﻿@model Adams.Web.Models.Classifieds.Index.PageLoad
@{
    Layout = "~/Views/Shared/_ContentLayout.Mobile.cshtml";
}
@section Head{
    <link href="/Content/Classifieds/index.css" rel="stylesheet" type="text/css" />
}
@section Scripts {
}
<h1>Classifieds</h1>
<form action="/Classifieds/Search" method="get">
<input type="text" name="criteria" id="criteria" />
<input type="submit" value="Search" />
</form>
<ul class="types">
    @foreach (var typ in Model.Types)
    {
        <li><span class="typetitle">@typ.Name</span>
            <ul class="categories">
                @foreach (var cat in typ.Categories2)
                {
                    <li><span><a href="/classifieds/@Adams.Shared.UrlHelper.Enc(typ.Name)/@Adams.Shared.UrlHelper.Enc(cat.Name)">@cat.Name</a> (@cat.Postings)</span></li>
                }
            </ul>
        </li>
    }
</ul>
